<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8"/>
    <title>Title</title>
</head>
<body>
  <table>
      <tr>
          <td>学生姓名</td>
          <td>学生性别</td>
          <td>学生年龄</td>
      </tr>
      <tr th:each="student,item:${ListStudent}">
          <td th:text="${item.count}"></td>
          <td>[[${student.stuName}]]</td>
          <td th:text="${student.age}"></td>
          <td th:text="${student.sex}"></td>
      </tr>
  </table>


  <table>
      <tr>
          <td>学生姓名</td>
          <td>学生性别</td>
          <td>学生年龄</td>
      </tr>
      <tr th:each="student:${ListStudent}">
          <td>[[${student.stuName}]]</td>
          <td th:text="${student.age}"></td>
          <td th:text="${student.sex}"></td>
          <td><input type="checkbox" th:checked="${student.sex eq '男'}" >男
              <input type="checkbox" th:checked="${student.sex eq '女'}" >女</td>
      </tr>
  </table>
</body>
</html>